package com.csun.cmny.provider.model.dto.dept;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2018-12-14 13:12
 * @Description:
 */
@Data
@ApiModel(value = "部门名称校验Dto")
public class UacDeptCheckNameDto implements Serializable {

    private static final long serialVersionUID = -5618881456161855624L;

    @ApiModelProperty(value = "部门Id")
    private Long deptId;

    @ApiModelProperty(value = "上级部门Id", required = true)
    @NotBlank(message = "上级部门Id不能为空")
    private Long pid;

    @ApiModelProperty(value = "部门名称", required = true)
    @NotBlank(message = "部门名称不能为空")
    private String deptName;
}
